package org.dromara.quick.chat.service;

import org.dromara.quick.chat.domain.ImChatConversation;
import org.dromara.quick.chat.model.bo.ImChatConversationReadMaxSeqBO;

/**
 * 最近会话表实体类
 * @Author: Stars
 * @Date: 2025/5/18 20:41
 */
public interface ImChatConversationService {



    /**
     * 更改阅读最大消息数量
     */
    void updateReadMaxSeq(ImChatConversationReadMaxSeqBO imChatConversationReadMaxSeqBO);

    /**
     * 更改删除消息 最大消息数量
     */
    void updateDeleteMaxSeq(ImChatConversationReadMaxSeqBO imChatConversationReadMaxSeqBO);

    /**
     * 根据条件查询指定会话
     * @param senderId 发送者id
     * @param receiverId 接收者id
     * @param channelType 频道类型
     */
    ImChatConversation selectByCondition(String senderId, String receiverId, Integer channelType);

}
